#include "gtkliststore.h"
#include "gtkwidgetprivate.h"
#include "gtkpopover.h"
+#include "gtklabel.h"
enum
{
GtkListStore *model;
GHashTable *groups;
GHashTable *iters;
+ GtkWidget *object_title;
};
G_DEFINE_TYPE_WITH_PRIVATE (GtkInspectorActions, gtk_inspector_actions, GTK_TYPE_BOX)
g_free (prefixes);
}
}
+
+ if (G_IS_OBJECT (object))
+ {
+ const gchar *title;
+ title = (const gchar *)g_object_get_data (object, "gtk-inspector-object-title");
+ gtk_label_set_label (GTK_LABEL (sl->priv->object_title), title);
+ }
}
static void
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/actions.ui");
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorActions, model);
+ gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorActions, object_title);
gtk_widget_class_bind_template_callback (widget_class, row_activated);
}
</object>
<template class="GtkInspectorActions" parent="GtkBox">
<property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel" id="object_title">
+ <property name="visible">True</property>
+ <property name="halign">fill</property>
+ <property name="valign">center</property>
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ </object>
+ </child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>